package com.xiaomiMall.mange.service.Impl;


import com.xiaomiMall.mange.domain.FromProd;
import com.xiaomiMall.mange.domain.Prod;
import com.xiaomiMall.mange.mapper.HomeBodyMapper;
import com.xiaomiMall.mange.service.HomeBodyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeBodyServiceImpl implements HomeBodyService {
    @Autowired
    private HomeBodyMapper homeBody;

    @Override
    public Prod select_id(Prod prod) {
        return homeBody.select_id(prod);
    }
    @Override
    public List<Prod> selectAll() {
        return homeBody.selectAll();
    }


    @Override
    public int addProd(FromProd fromProd) {
        return homeBody.addProd(fromProd);
    }

    @Override
    public int upAndDown(Prod prod) {
        return homeBody.upAndDown(prod);
    }

    @Override
    public int updateOne(Prod prod) {
        return homeBody.updateOne(prod);
    }

    @Override
    public List<Prod> selectSign(int sign,String likeSelect) {
        return homeBody.selectSign(sign,likeSelect);
    }

    @Override
    public Integer selectSignCount(int sign,String likeSelect) {
        return homeBody.selectSignCount(sign,likeSelect);
    }

    @Override
    public int addProd_tetail(FromProd fromProd) {
        return homeBody.addProd_tetail(fromProd);
    }

    @Override
    public Integer selectId(FromProd prod) {
        return homeBody.selectId(prod);
    }


}
